package entity;

import java.io.Serializable;

public enum ResultCode {
    /**
     * 返回成功是信息
     */
    SUCCESS(200,"操作成功"),
    /**
     * 返回失败时信息
     */
    FAILED(500,"操作失败");
    private int code;
    private  String message;
    private ResultCode(int code,String message){
        this.code=code;
        this.message=message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
